﻿package learnmath.windows.apps{
/*-------------------------------------------------------------
	Created by: Ionel Alexandru 
	Mail: ionel.alexandru@gmail.com
	Site: www.learn-math.info
---------------------------------------------------------------*/
import learnmath.mathml.graph.*;
import learnmath.windows.elements.*;
import learnmath.windows.menu.*;
import learnmath.windows.*;
import flash.display.*;
import fl.containers.*;
import flash.net.*;
import fl.controls.*;

public class XmlEditorApp extends WindowXP{

	
	var textArea:TextArea
	var workingPannelW;
	var workingPannelH;
	

	public function XmlEditorApp(_windowsManager:WindowsManager, parent:MovieClip, _littleIcon:MovieClip, _name:String, _id:String, x:int, y:int, _width:int, _height:int, _graphMC:String){
		super(_windowsManager, parent, _littleIcon, _name, _id, x, y, _width, _height);
		textArea = new TextArea();
		textArea.text = "<mathml>\n\t<mrow>\n\t</mrow>\n<mathml>";
	}
	
	public override function redrawWorkingPannel():void {
		workingPannelW = width-8;
		workingPannelH = height-43;
		textArea.x = 4;
		textArea.y = 21;
		textArea.width = workingPannelW
		textArea.height = workingPannelH;
		pannel.addChild(textArea);
		
	}

	public override function executeMenu(event:MenuCustomEvent):void {
		trace("event:" + event.menuId);
	}
	
	public override function drawOnFrame():void {
	}

}
}